<template>
	<view>
		<my-title-back :title="loginTitle" @gotoBack="gotoBack">
			<template v-slot:right>
				<view class="register">
					<text @click="gotoRegister">注册</text>
				</view>
			</template>
		</my-title-back>
	</view>
</template>

<script>
	import myTitleBack from '@/components/common/my-title-back/my-title-back.vue'
	export default {
		components: {
			myTitleBack
		},
		data() {
			return {
				loginTitle: '登录'
			}
		},
		methods: {
			gotoBack() {
				uni.reLaunch({
					url: '/pages/login/login-index/login-index'
				})
			},
			gotoRegister() {
				uni.navigateTo({
					url: '/pages/login/register/register'
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	.register {
		line-height: 49px;
		text-align: center;

		text {
			font-size: 38rpx;
			color: #8295a5;
		}
	}
</style>
